<%  if style_detail.materials.size > 0-%>
  <% first_mate = style_detail.materials.first -%>
  <dl class="img_container">
    <dt>
      <a href="/styles/<%= style_detail.id.to_s %>/materials/<%= first_mate.id.to_s %>" rel="#overlay" style="text-decoration:none">
        <%= image_tag url_for_file_column(style_detail.materials.first, "image_url","thumb"),:class=>'hot_list_img',:title=>"点击放大" if style_detail.materials.first.image_url %>
      </a>
    </dt>
  </dl>
<%else-%>
  <dl class="rank_button_container">
    <dt id="blank_style">
      <%=style_detail.name%>,暂无颜色信息.
    </dt>
    <% if editor? %>
      <dd>
        <%= link_to '管理颜色', style_materials_path(style_detail),:class=>"action_color" %>
      </dd>
    <% end %>
  </dl>
<%end%>


